﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace FySystem.Net.HttpAuth
{
    public class FyRequestInfo
    {
        public string Culture { get; set; }

        public EnumCultures ECultures
        {
            get
            {
                if (string.IsNullOrWhiteSpace(Culture))
                    Culture = "zh-cn";

                return Enum.Parse<EnumCultures>(Culture.ToLower().Replace("-", ""));
            }
        }

        public string Token { get; set; }

        public IPAddress ClientAddress { get; set; }

        public SessionUserBase User { get; set; }
    }
}
